package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.PaperTypeDao;
import com.neuedu.model.PaperType;
import com.neuedu.service.PaperTypeService;

@Service
public class PaperTypeServiceImpl implements PaperTypeService {

	// 依赖注入
	@Autowired
	private PaperTypeDao PaperTypeDao;
	
	public void setPaperTypeDao(PaperTypeDao PaperTypeDao) {
		this.PaperTypeDao = PaperTypeDao;
	}
	
	@Override
	public int countPaperType() {
		return PaperTypeDao.countPaperType();
	}

	@Override
	public List<PaperType> findAll(Map<String, Object> map) {
		return PaperTypeDao.findAll(map);
	}

	@Override
	public int addPaperType(PaperType u) {
		return PaperTypeDao.addPaperType(u);
	}

	@Override
	public int updatePaperType(PaperType u) {
		return PaperTypeDao.updatePaperType(u);
	}

	@Override
	public int deletePaperType(int id) {
		return PaperTypeDao.deletePaperType(id);
	}

	@Override
	public List<PaperType> findList() {
		// TODO Auto-generated method stub
		return PaperTypeDao.findList();
	}

}
